package com.entity;

import java.util.Arrays;
import java.util.List;

public class Teacher {
    private String teacherName;
    private Course[] courseArr;
    private List<Student> studentList;

    public Teacher() {
    }

    public Teacher(String teacherName, Course[] courseArr, List<Student> studentList) {
        this.teacherName = teacherName;
        this.courseArr = courseArr;
        this.studentList = studentList;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Course[] getCourseArr() {
        return courseArr;
    }

    public void setCourseArr(Course[] courseArr) {
        this.courseArr = courseArr;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "{老师姓名：" + teacherName +
                "，课程：" + Arrays.toString(courseArr) +
                "，学生：" + studentList + "}";
    }
}
